package com.echat.business.blog.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author chentl123
 * @since 2019-10-08
 */
@TableName("echo_business_blog_reply")
public class BlogReply extends Model<BlogReply> {

    private static final long serialVersionUID = 1L;

    /**
     * 回复表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 评论id
     */
    private Integer commentId;
    /**
     * 评论者id（关联user表）
     */
    private Integer reviewerId;
    /**
     * 评论内容
     */
    private String content;
    /**
     * 评论创建时间
     */
    private Date createTime;
    /**
     * 被评论人id
     */
    private Integer commentatorId;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public Integer getReviewerId() {
        return reviewerId;
    }

    public void setReviewerId(Integer reviewerId) {
        this.reviewerId = reviewerId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getCommentatorId() {
        return commentatorId;
    }

    public void setCommentatorId(Integer commentatorId) {
        this.commentatorId = commentatorId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BlogReply{" +
        ", id=" + id +
        ", commentId=" + commentId +
        ", reviewerId=" + reviewerId +
        ", content=" + content +
        ", createTime=" + createTime +
        ", commentatorId=" + commentatorId +
        "}";
    }
}
